package br.univas.vperiod.jowey.dao;

import java.util.ArrayList;
import java.util.List;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import br.univas.vperiod.jowey.entities.Player;
import br.univas.vperiod.jowey.entities.PlayerJob;

@Repository
@Transactional
public class PlayerJobDAO implements IPlayerJobDAO<PlayerJob> {

	@Autowired
	private SessionFactory factory;
	
	public void save(PlayerJob playerJob) {
		// TODO Auto-generated method stub
		
	}

	@SuppressWarnings("unchecked")
	public List<PlayerJob> findAll() {
		return (List<PlayerJob>) factory.getCurrentSession().createCriteria(PlayerJob.class).list();
	}

	public Player findByName(String name) {
		// TODO Auto-generated method stub
		return null;
	}

	public Player findById(long id) {
		// TODO Auto-generated method stub
		return null;
	}

}
